/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cardTests;

import cardHouse.cards.Card;
import cardHouse.cards.Deck;
import java.util.Scanner;


/**
 *
 * @author samuel
 */
public class DeckTester {
    // construct deck
    Deck test_deck;
    
    /*draw each card from the deck and display it in the console*/
    public void fiftyTwoCardPickup(Deck test_deck){
      
        for(int deck_index = 0; deck_index < 52; deck_index ++ ){
            Card current_card = test_deck.drawCard();
            System.out.print("DEBUG: THE CURRENT CARD IS: " + current_card.toString() + " \n");
        }
    }
    
    public void randomFiftyTwo(Deck test_deck){
        for(int deck_index = 0; deck_index < 52; deck_index ++ ){
            Card current_card = test_deck.dealRandomCard();
            System.out.print("DEBUG: THE CURRENT CARD IS: " + current_card.toString() + " \n");
        }
    }
    
    // pick a card any card test 
    /**
     *
     * @param test_deck
     */
    public void pickACardAnyCard(Deck test_deck){
       Scanner console_input = new Scanner(System.in);
       int card_index;
       Card chosen_card;
       System.out.print("Enter any number between 1 and 52: ");
       card_index = console_input.nextInt() - 1;
       System.out.print("\n");
       chosen_card = test_deck.drawCard(card_index);
       System.out.println("DEBUG: You drew " + chosen_card.toString() + " ." );
    }
   
    
}
